package com.itehima.MathTest;

public class Test {
    public static void main(String[] args) {
        //        请计算3的5次幂
        double pow = Math.pow(3, 5);
        System.out.println(pow);
        System.out.println("-----------------------------");
        //        请计算3.2向上取整的结果
        double ceil = Math.ceil(3.2);
        System.out.println(ceil);
        System.out.println("-----------------------------");
        //        请计算3.8向下取整的结果
        double floor = Math.floor(3.8);
        System.out.println(floor);
        System.out.println("-----------------------------");
        //        请计算5.6四舍五入取整的结果
        long round = Math.round(5.6);
        System.out.println(round);
        System.out.println("-----------------------------");

    }
}
